package com.zsrt.day20170419.am.interfaces;
/**
*@author jzh
*@创建时间 2017年4月19日上午11:51:58
*类说明：
*/
public class Car implements Daibugongju {
	
	private int x;
	private int y;
	
	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	@Override
	public int cal(Daibugongju daibugongju) {
		int x=daibugongju.getX();
		int y=daibugongju.getY();
		return x+y;
	}

}
